<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\QuestionRepository")
 */
class Question
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $question;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $createName;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $createtime;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $answer;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $answerUser;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $answertime;

    /**
     * @ORM\Column(type="string", length=5, nullable=true)
     */
    private $status;

    /**
     * @ORM\Column(type="string", length=3, nullable=true)
     */
    private $isTop;

    public function getId()
    {
        return $this->id;
    }

    public function getQuestion(): ?string
    {
        return $this->question;
    }

    public function setQuestion(?string $question): self
    {
        $this->question = $question;

        return $this;
    }

    public function getCreateName(): ?string
    {
        return $this->createName;
    }

    public function setCreateName(?string $createName): self
    {
        $this->createName = $createName;

        return $this;
    }

    public function getCreatetime(): ?string
    {
        return $this->createtime;
    }

    public function setCreatetime(?string $createtime): self
    {
        $this->createtime = $createtime;

        return $this;
    }

    public function getAnswer(): ?string
    {
        return $this->answer;
    }

    public function setAnswer(?string $answer): self
    {
        $this->answer = $answer;

        return $this;
    }

    public function getAnswerUser(): ?string
    {
        return $this->answerUser;
    }

    public function setAnswerUser(?string $answerUser): self
    {
        $this->answerUser = $answerUser;

        return $this;
    }

    public function getAnswertime(): ?string
    {
        return $this->answertime;
    }

    public function setAnswertime(?string $answertime): self
    {
        $this->answertime = $answertime;

        return $this;
    }

    public function getStatus(): ?string
    {
        return $this->status;
    }

    public function setStatus(?string $status): self
    {
        $this->status = $status;

        return $this;
    }

    public function getIsTop(): ?string
    {
        return $this->isTop;
    }

    public function setIsTop(?string $isTop): self
    {
        $this->isTop = $isTop;

        return $this;
    }
}
